package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户商品购物车
 * </p>
 *
 * @author leehao
 * @since 2019-06-03
 */
@Data
public class CShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    private Integer bid;

    /**
     * 用户id
     */
    private Integer cid;

    /**
     * 产品id
     */
    private Integer proId;

    /**
     * 产品主图
     */
    private String proUrl;

    /**
     * 产品编码
     */
    private String proCode;

    /**
     * 产品名称
     */
    private String proName;

    /**
     * 产品规格id
     */
    private Integer skuId;

    /**
     * 数量
     */
    private Integer qty;

    /**
     * 产品类型
     */
    private Integer type;

    private Date createTime;


    /**
     * 赠送创业分
     */
    @TableField(exist = false)
    private BigDecimal point;



    @TableField(exist = false)
    private List<CShoppingCart> shopList;

    /**
     * 店铺名称
     */
    @TableField(exist = false)
    private String businessName;

    /**
     * 店铺类型
     */
    @TableField(exist = false)
    private Integer bType;

    /**
     * 类型名称
     */
    @TableField(exist = false)
    private String typeName;

    /**
     * 产品价格
     */
    @TableField(exist = false)
    private BigDecimal price;

    /**
     * 规格名称
     */
    @TableField(exist = false)
    private String specName;

    @TableField(exist = false)
    private String sku;

    /**
     * 库存数量
     */
    @TableField(exist = false)
    private BigDecimal totalQty;

}
